import 'package:library_base/entities/generated/json/base/json_field.dart';
import 'package:library_base/entities/generated/json/stock_out_child_data_entity.g.dart';
import 'dart:convert';

@JsonSerializable()
class StockOutChildDataEntity{

  late String finishedCount;
  late String totalCount;
  
  StockOutChildDataEntity();

  factory StockOutChildDataEntity.fromJson(Map<String, dynamic> json) => $StockOutChildDataEntityFromJson(json);

  Map<String, dynamic> toJson() => $StockOutChildDataEntityToJson(this);

  @override
  String toString() => json.encode(this);

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is StockOutChildDataEntity &&
          runtimeType == other.runtimeType &&
          finishedCount == other.finishedCount &&
          totalCount == other.totalCount;

  @override
  int get hashCode => finishedCount.hashCode ^ totalCount.hashCode;

}
